package com.szw.dlyk.mapper;

import com.szw.dlyk.commons.DataScope;
import com.szw.dlyk.domain.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.szw.dlyk.domain.User;
import com.szw.dlyk.query.ActivityQuery;
import com.szw.dlyk.query.BaseQuery;

import java.util.List;

/**
* @author asus
* @description 针对表【t_activity(市场活动表)】的数据库操作Mapper
* @createDate 2024-01-21 18:16:50
* @Entity com.szw.dlyk.domain.Activity
*/
public interface ActivityMapper extends BaseMapper<Activity> {


    @DataScope(tableAlias = "ta", tableField = "owner_id")
    List<Activity> selectActivityByPage(ActivityQuery query);

    int insertSelective(Activity activity);

    int updateByPrimaryKeySelective(Activity activity);

    Activity selectDetailByPrimaryKey(Integer id);

    List<Activity> selecOngoingActivity();

    Integer selectByCount();
}




